package sms.ui.xuesheng;

import sms.dao.XueShengDao;
import sms.entry.XueSheng;
import sms.ui.XueShengGuanLi;

import java.util.Scanner;

public class XueShengUpdate {
    private static XueShengDao xueShengDao = new XueShengDao();
    public static void show(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要修改学生的学号");
        int xuehao = sc.nextInt();
        System.out.println("请输入将要修改的姓名");
        String name = sc.next();
       /* System.out.println("请输入将要修改的生日");
        String birthday = sc.next();*/
        XueSheng xueSheng = new XueSheng(xuehao,name);
        xueShengDao.update(xueSheng);
        System.out.println("修改成功");
        XueShengGuanLi.show();


        }
}

